package com.it.ems.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/addresses")
public class AddressController {

    @GetMapping
    public String listAddresses(Model model) {
        // 这里可以从服务层获取地址数据
        // model.addAttribute("addresses", addressService.findAllAddresses());
        return "addresses";
    }
} 